import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listTerrace(query) {
  return request({
    url: '/system/terrace/list',
    method: 'get',
    params: query
  })
}


export function findSum(query) {
  return request({
    url: '/system/terrace/findSum',
    method: 'get',
    params: query
  })
}




export function findAllSum(query) {
  return request({
    url: '/system/terrace/findAllSum',
    method: 'get',
    params: query
  })
}


export function findAllSumTwo(query) {
  return request({
    url: '/system/terrace/findAllSumTwo',
    method: 'get',
    params: query
  })
}


export function findAllList(query) {
  return request({
    url: '/system/terrace/findAllList',
    method: 'get',
    params: query
  })
}


// 查询【请填写功能名称】详细
export function getTerrace(terraceId) {
  return request({
    url: '/system/terrace/' + terraceId,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addTerrace(data) {
  return request({
    url: '/system/terrace',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateTerrace(data) {
  return request({
    url: '/system/terrace',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delTerrace(terraceId) {
  return request({
    url: '/system/terrace/' + terraceId,
    method: 'delete'
  })
}

// 导出【请填写功能名称】
export function exportTerrace(query) {
  return request({
    url: '/system/terrace/export',
    method: 'get',
    params: query
  })
}

export function exportTerraceTwo(query) {
  return request({
    url: '/system/terrace/exportTwo',
    method: 'get',
    params: query
  })
}



// export function findAllSum() {
//   return request({
//     url: '/system/substations/findAllSum',
//     method: 'get'
//   })
// }
